<?php
/**
 * Created by PhpStorm.
 * User: hjl
 * Date: 2016/8/24
 * Time: 14:29
 */

namespace Api\Controller;

use Think\Controller;

//public static final String baseUrl = "http://192.168.18.100/GasManager/";
//public static final String apiUrl = baseUrl + "api.php?a=submitcj";
//public static final String imgUrl = baseUrl + "Uploads";


//定义api接口返回格式
define('ApiReturn', 'json');

//定义userToken有效期3天
//define('UserTokenExpireTime', 3*24*60*60*1000);
define('UserTokenExpireTime', 3*24*60*60);

//日志是否打开1 打开，0 是关闭
define('UserWriteLog',0);

/*文件上传保存根目录*/
define('FileRootPath', "./Uploads");

/*图片上传目录*/
define('ImagePath', "/imgs/");

define('URL_BASE', "http://localhost/GasManager/api.php");

class AppController extends Controller
{
    public function _initialize()
    {
    }

    // 验证用户token
    protected function checkUserToken($userToken)
    {

    }
}